<!-- 采购订单详情 -->
<template>
  <div class="my-invoice-detail">  
    <row title="订单号"  :value="detail.money"></row>
    <row title="下单时间"  :value="detail.time"></row>
    <row title="订单金额"  :value="'￥'+detail.money"></row> 
    <div class="invoice-photo">
        <div class="map-title">订单商品</div>
         <div class="goods-list" v-for="(item,index) in detail.goodsList" :key="index">
            <div class="goods-left">
                <img src="" alt="" class="goods-img">
            </div>
            <div class="goods-right">
                <div class="goods-name">{{item.goodsName}}</div>
                <div class="goods-price"><span>单价:</span>￥{{item.price}}</div>
                <div class="goods-num"><span>数量(箱):</span>{{item.num}}</div>
            </div>
         </div>
    </div>
    <row title="下单人"  :value="detail.number"></row>
    <row title="收货地址"  :value="detail.number"></row>
    <row title="收货店铺"  :value="detail.number"></row>
    <row title="发货仓库"  :value="detail.number"></row>
    <row title="状态"  :value="detail.number"></row>
  </div>
</template>

<script>
import row from '@/components/row'
import api from '@/api/api.js' 
export default { 
  components: {
    row
  },
  data () {
    return {
      detail:{
          money:'125.00',
          time:'2020-12-28 12:28',
          statusName:'待开票',
          number:'kl1354131545',
          poster:'', 
          goodsList:[
            {goodsName:'菌菇鲜虾汤面',price:'12.80',num:'2'},
            {goodsName:'菌菇鲜虾汤面',price:'12.80',num:'2'}
        ], 
      }
    }
  },
  mounted () {
  },
  filters: {
     
  },
  methods: {
    
  }
}
</script>
<style lang="less" scoped>
.invoice-photo{
    padding: 12px 16px;
}
.map-title{
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    font-weight: bold;
}
.invoice-order{
    display: flex;
    height: 40px;
    line-height: 40px; 
}
.goods-list{
    display: flex;
    padding: .20rem 0;
    position: relative;
    &::before{
        position: absolute;
        bottom: 0;
        content: '';
        left: 0;
        right: -20px;
        height: 1px;
        background: #f5f5f5;
    }
}

.goods-img{
    width: 1.48rem;
    height: 1.48rem;
    border-radius: .12rem;
    background: #ddd;
}
.goods-name{
    font-size: .30rem;
    font-weight: bold;
    line-height: .34rem;
}
.goods-price,.goods-num{
    
    font-size: .24rem;
    & span{
        margin-right: .12rem;
        color: #999;
    }
}
.goods-right{
    width: 1.48rem;
    height: 1.48rem;
    flex: 1;
    padding-left: .20rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.invoice-number{
    color: #444;
    width: 35%;
    padding-left: 8px;
}
.tips{
    color: #999;
    font-size: 11px;
    margin-left: 8px;
}
.invoice-money{
    color: #999;
    width: 30%;
}
.invoice-timer{
   color: #666; 
   width: 35%;
}
.invoice-active{
    background: #e1e1e1;
}
.wrap-box{
    display: flex;
    flex-wrap: wrap;
    img{
        margin-bottom: 10px;
        margin-right: 10px;
        width: 74px;
        height: 74px;
        background: #bbb;    }
}
.btn-box{
    display: flex;
    background: #fff;
    height: 50px;
    box-sizing: border-box;
    position: fixed;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.06);;
    bottom: 0;
    left: 0;
    right: 0;
    &>div{
        flex: 1;
        text-align: center;
        line-height: 50px;
    }
    .rightline{
        position: relative;
        &::before{
            content: '';
            right: 0;
            top: 18px;
            position: absolute;
            bottom: 18px;
            width: 1px;
            background: #e1e1e1;
        }
    }

}
</style>
